home *** CD-ROM | disk | FTP | other *** search
/ EDUCORP 8 / Educorp2Compilation.sit / educorp2 / Programming (2300, 7000) / 2307 Programming v.5 / XLisp / XLISP Examples / Fact.LSP next >
Encoding:
Lisp/Scheme  |  1985-01-26  |  84 b   |  4 lines

  1. (defun factorial (n)
  2.        (cond ((= n 1) 1)
  3.          (t (* n (factorial (- n 1))))))
  4.